//api文件仍保留但不建议使用，推荐使用models中的api。API files remain preserved (deprecated), use models APIs instead.
import type { MinishopOrderAftersale, MinishopOrderAftersaleResponse } from './types.js';

import { requestClient } from '#/api/request';

export const getuctooMinishopOrderAftersaleList = async (page: number, pageSize: number,
  searchParams?: any) => {
  return requestClient.get<MinishopOrderAftersaleResponse>(`/uctoo/minishop_order_aftersale/${pageSize}/${page}`,{
    params: searchParams,
  });
};

export const getuctooMinishopOrderAftersale = async (id: string) => {
  return requestClient.get<MinishopOrderAftersale>(`/uctoo/minishop_order_aftersale/${id}`);
};

export const adductooMinishopOrderAftersale = async (data: Partial<MinishopOrderAftersale>) => {
  return requestClient.post<MinishopOrderAftersale>('/uctoo/minishop_order_aftersale/add', data);
};

export const edituctooMinishopOrderAftersale = async (data: Partial<MinishopOrderAftersale>) => {
  return requestClient.post<MinishopOrderAftersale>('/uctoo/minishop_order_aftersale/edit', data);
};

export const deleteuctooMinishopOrderAftersale = async (id: string) => {
  return requestClient.post<any>('/uctoo/minishop_order_aftersale/del', { id });
};
